package com.md.drcs.dicom.entity;

import com.md.common.utils.json.JSONUtil;
import org.apache.commons.lang3.StringUtils;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 功能描述：t_patient表实体
 * 
 * @author liuzg1@guahao.com
 * @version 1.0
 * @date 2018/12/11 18:04
 * @since JDK 1.8
 */
@Table(name = "t_patient")
public class PatientEntity implements Serializable{
	
	//columns START
	/**
	 * nPatId
	 */
	@Id
	@Column(name = "nPatId")
	private Long nPatId;
	/**
	 * sName
	 */
	@Column(name = "sName")
	private String sName;
	/**
	 * sEName
	 */
	@Column(name = "sEName")
	private String sEName;
	/**
	 * sSex
	 */
	@Column(name = "sSex")
	private String sSex;
	/**
	 * sPatIdInPacs
	 */
	@Column(name = "sPatIdInPacs")
	private String sPatIdInPacs;
	/**
	 * sPatIdinFile
	 */
	@Column(name = "sPatIdinFile")
	private String sPatIdinFile;
	/**
	 * sPatNameInFile
	 */
	@Column(name = "sPatNameInFile")
	private String sPatNameInFile;
	/**
	 * sImagePath
	 */
	@Column(name = "sImagePath")
	private String sImagePath;
	/**
	 * sBloodType
	 */
	@Column(name = "sBloodType")
	private String sBloodType;
	/**
	 * sNative
	 */
	@Column(name = "sNative")
	private String sNative;
	/**
	 * nDelFlag
	 */
	@Column(name = "nDelFlag")
	private Integer nDelFlag;
	/**
	 * sPhoneTel
	 */
	@Column(name = "sPhoneTel")
	private String sPhoneTel;
	/**
	 * sAddress
	 */
	@Column(name = "sAddress")
	private String sAddress;
	/**
	 * sPostCode
	 */
	@Column(name = "sPostCode")
	private String sPostCode;

	@Column(name = "sIdNumber")
	private String sIdNumber;
	//columns END 数据库字段结束
	
	//get and set
	public void setNPatId(Long nPatId) {
		this.nPatId = nPatId;
	}
	
	public Long getNPatId() {
		return this.nPatId;
	}
	
	public void setSName(String sName) {
		this.sName = StringUtils.trim(sName);
	}
	
	public String getSName() {
		return this.sName;
	}
	
	public void setSEName(String sEName) {
		this.sEName = StringUtils.trim(sEName);
	}
	
	public String getSEName() {
		return this.sEName;
	}
	
	public void setSSex(String sSex) {
		this.sSex = StringUtils.trim(sSex);
	}
	
	public String getSSex() {
		return this.sSex;
	}
	
	public void setSPatIdInPacs(String sPatIdInPacs) {
		this.sPatIdInPacs = StringUtils.trim(sPatIdInPacs);
	}
	
	public String getSPatIdInPacs() {
		return this.sPatIdInPacs;
	}
	
	public void setSPatIdinFile(String sPatIdinFile) {
		this.sPatIdinFile = StringUtils.trim(sPatIdinFile);
	}
	
	public String getSPatIdinFile() {
		return this.sPatIdinFile;
	}
	
	public void setSPatNameInFile(String sPatNameInFile) {
		this.sPatNameInFile = StringUtils.trim(sPatNameInFile);
	}
	
	public String getSPatNameInFile() {
		return this.sPatNameInFile;
	}
	
	public void setSImagePath(String sImagePath) {
		this.sImagePath = StringUtils.trim(sImagePath);
	}
	
	public String getSImagePath() {
		return this.sImagePath;
	}
	
	public void setSBloodType(String sBloodType) {
		this.sBloodType = StringUtils.trim(sBloodType);
	}
	
	public String getSBloodType() {
		return this.sBloodType;
	}
	
	public void setSNative(String sNative) {
		this.sNative = StringUtils.trim(sNative);
	}
	
	public String getSNative() {
		return this.sNative;
	}
	
	public void setNDelFlag(Integer nDelFlag) {
		this.nDelFlag = nDelFlag;
	}
	
	public Integer getNDelFlag() {
		return this.nDelFlag;
	}
	
	public void setSPhoneTel(String sPhoneTel) {
		this.sPhoneTel = StringUtils.trim(sPhoneTel);
	}
	
	public String getSPhoneTel() {
		return this.sPhoneTel;
	}
	
	public void setSAddress(String sAddress) {
		this.sAddress = StringUtils.trim(sAddress);
	}
	
	public String getSAddress() {
		return this.sAddress;
	}
	
	public void setSPostCode(String sPostCode) {
		this.sPostCode = StringUtils.trim(sPostCode);
	}
	
	public String getSPostCode() {
		return this.sPostCode;
	}

	public String getSIdNumber() {
		return sIdNumber;
	}

	public void setSIdNumber(String sIdNumber) {
		this.sIdNumber = sIdNumber;
	}

	public String toString() {
		return JSONUtil.toJSON(this);
	}
	
}

	
